/**
 * Copies a set of named properties fom the source object to the destination object.
 * <p>example:<pre><code>
ImageComponent = Ext.extend(Ext.BoxComponent, {
initComponent: function() {
this.autoEl = { tag: 'img' };
MyComponent.superclass.initComponent.apply(this, arguments);
this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');
}
});
    * </code></pre>
    * @param {Object} dest The destination object.
    * @param {Object} source The source object.
    * @param {Array/String} names Either an Array of property names, or a comma-delimited list
    * of property names to copy.
    * @return {Object} The modified object.
*/
Ext.copyTo = function(dest, source, names){
    if(typeof names == 'string'){
        names = names.split(/[,;\s]/);
    }
    Ext.each(names, function(name){
        if(source.hasOwnProperty(name)){
            dest[name] = source[name];
        }
    }, this);
    return dest;
};